function createKindEditor(K, name) {
	var editor = K.create('textarea[name="'+ name +'"]', {
		uploadJson : '/file_upload',
        fileManagerJson : '/file_manager',
        langType : 'en',
        allowFileManager : true,
        items : [
 			'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
 			'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
 			'insertunorderedlist', '|', 'emoticons', 'image', 'link']
	});
	return editor;
}

function createSimpleKindEditor(K, name) {
	var editor = K.create('textarea[name="'+ name +'"]', {
		allowImageUpload : false,
		items : [
			'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
			'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
			'insertunorderedlist', '|', 'emoticons', 'image', 'link']
	});
	return editor;
}